home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_1
/
dmail11d.zip
/
DMXFER.ZIP
/
DMXFER4.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-09-27
|
2KB
|
42 lines
@echo off
rem DATAMAIL File Transfer Batch #4
rem This Batch file Sends/Receives via XModem CRC
rem
rem *******************************************************************
rem
rem parameters to batch file:
rem 1: R = Recieve a file (User is uploading)
rem S = Send a file (User is downloading)
rem 2: Full Drive:\Path\Filename.Ext to send/receive
rem 3: Communications port in use (1=COM1, 2=COM2, etc.)
rem 4: DTE/DCE bps rate (BBS PC-to-BBS Modem bps rate)
rem 5: Modem/Modem bps rate (BBS Modem-to-User Modem bps rate)
rem 6: UART Base address in hex. (for non-standard COMx Sysops)
rem 7: UART Base address in dec. (for non-standard COMx Sysops)
rem 8: IRQ Number (for non-standard COMx Sysops)
rem
rem *******************************************************************
rem
rem Place any set-up/initialization work here... Delete these lines if none
rem
rem *******************************************************************
rem
if %1! == R! goto RECEIVE
:SEND
DSZ port %3 speed %4 ha cts D sx %2
goto TERMINUS
:RECEIVE
DSZ port %3 speed %4 ha cts D rc %2
if ERRORLEVEL == 1 goto ERROR
goto TERMINUS
:ERROR
if exist %2 del %2
:TERMINUS
rem
rem *******************************************************************
rem
rem Place any wrap-up/termination work here... Delete these lines if none
rem
rem *******************************************************************
rem